package com.rxyb.sms.service.factory.keyou;

import com.rxyb.sms.service.factory.SmsManagement;
import com.rxyb.sms.utils.SmsRspData;
import com.rxyb.sms.utils.keyou.KeyouClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 发送短信
 *
 * @author duyh
 **/
@Slf4j
@Service
public class KeyouManagement implements SmsManagement {

    @Autowired
    private KeyouClient keyouClient;

    @Override
    public SmsRspData send(String mobile, String message) {
        return keyouClient.send(mobile, message);
    }
}
